<script lang="ts" setup>
import { ref, onMounted } from 'vue';
const nowTime = ref('');
onMounted(() => {
  setInterval(() => {
    nowTime.value = new Date().format('yyyy年MM月dd日 hh:mm:ss 星期几');
  });
});
</script>

<template>
  <span>
    {{ nowTime }}
  </span>
</template>

<style scoped></style>
